<!-- 12.Search_results -->
<div class="container">
<div class="search-results">
  <div class="searchPage-search">
    {{search}}
  </div>

  <h1>検索結果<span class="count">{{results_count}}<span>件</span></span></h1>

  <section class="search-results-column">
    <h2 class="search-results-subheading">
      記事
    </h2>
    {{#if article_results}}
      <ul class="search-results-list">
        {{#each article_results}}
          <li class="search-result">
            <a href="{{url}}" class="search-result-link">{{title}}</a>
            <ul class="search-result-breadcrumb">
            {{#each path_steps}}
              <li><a href="{{url}}">{{name}}</a></li>
            {{/each}}
            </ul>
            <div class="search-result-description">{{text}}</div>


          </li>
        {{/each}}
      </ul>
    {{else}}
      <p>
        {{t 'no_results' query=query}}
        {{#link 'help_center'}}
          {{t 'browse_knowledge_base'}}
        {{/link}}
      </p>
    {{/if}}
  </section>

  {{#if help_center.community_enabled}}
    <section class="search-results-column">
      <h2 class="search-results-subheading">
        {{t 'community'}}
      </h2>
      {{#if post_results}}
        <ul class="search-results-list">
          {{#each post_results}}
            <li class="search-result">
              <a href="{{url}}" class="search-result-link">{{title}}</a>
              <div class="search-result-meta">
                <span class="search-result-meta-time">{{date created_at}}</span>
                <span dir="auto" class="search-result-meta-name">
                  {{#link 'user_profile' id=author.id}}
                    {{author.name}}
                  {{/link}}
                </span>

                <span class="search-result-meta-count"><span class="fa fa-comment-o"></span>
                  {{t 'comments_count' count=comment_count}}
                </span>
              </div>
              <div class="search-result-description">
                {{text}}
              </div>

            </li>
          {{/each}}
        </ul>
      {{else}}
        <p>
          {{t 'no_results' query=query}}
          {{#link 'topics'}}
            {{t 'browse_community'}}
          {{/link}}
        </p>
      {{/if}}
    </section>
  {{/if}}

</div>

{{pagination}}
</div>
